
int rule_essid(unsigned long int essid_dec) {
    if (essid_dec >= 0x0000 && essid_dec < 0x0050) return 18;
    if (essid_dec >= 0x0050 && essid_dec < 0x3fe1) return 17;
    if (essid_dec >= 0x3fe1 && essid_dec < 0x4454) return 21;
    if (essid_dec >= 0x4454 && essid_dec < 0x5cc8) return 18;
    if (essid_dec >= 0x5cc8 && essid_dec < 0x82B5) return 13;
    if (essid_dec >= 0x82B5 && essid_dec < 0x8956) return 15;
    if (essid_dec >= 0x8956 && essid_dec < 0x9c8a) return 18;
    if (essid_dec >= 0x9c8a && essid_dec < 0xB768) return 19;
    if (essid_dec >= 0xB768 && essid_dec < 0xDEC2) return 16;
    if (essid_dec >= 0xDEC2 && essid_dec < 0xE43C) return 16;
    if (essid_dec >= 0xE43C && essid_dec < 0xe41c) return 18;
    if (essid_dec >= 0xe41c && essid_dec < 0xe890) return 20;
    if (essid_dec >= 0xe890) return 20;
}
